package com.system.employment.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="t_employment")
public class Employment {
	private Long id;
	private long empId;//员工Id
	@DateTimeFormat(pattern="yyyy/MM/dd HH:mm:ss")
	private Date underWriteDate;//签订时间 
	@DateTimeFormat(pattern="yyyy/MM/dd HH:mm:ss")
	private Date breakDate;//终止时间
	@DateTimeFormat(pattern="yyyy/MM/dd HH:mm:ss")
	private Date overDate;//到期时间
	
	private String timeLimit;//合同期限
	private String breakReason;//终止原因
	private String remark;//备注

	//get方法
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	
	public long getEmpId() {
		return empId;
	}
	
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getUnderWriteDate() {
		return underWriteDate;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getBreakDate() {
		return breakDate;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getOverDate() {
		return overDate;
	}
	
	public String getTimeLimit() {
		return timeLimit;
	}
	public String getBreakReason() {
		return breakReason;
	}
	public String getRemark() {
		return remark;
	}
	
	//set方法
	public void setId(Long id) {
		this.id = id;
	}
	public void setEmpId(long empId) {
		this.empId = empId;
	}
	public void setUnderWriteDate(Date underWriteDate) {
		this.underWriteDate = underWriteDate;
	}
	public void setBreakDate(Date breakDate) {
		this.breakDate = breakDate;
	}
	public void setOverDate(Date overDate) {
		this.overDate = overDate;
	}
	public void setTimeLimit(String timeLimit) {
		this.timeLimit = timeLimit;
	}
	public void setBreakReason(String breakReason) {
		this.breakReason = breakReason;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
